home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / ntfsdecrypt < prev    next >
Encoding:
Text File  |  2007-03-14  |  4.5 KB  |  118 lines

  1. #! /bin/sh
  2.  
  3. # ntfsdecrypt - temporary wrapper script for .libs/ntfsdecrypt
  4. # Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
  5. #
  6. # The ntfsdecrypt program cannot be directly executed until all the libtool
  7. # libraries that it depends on are installed.
  8. #
  9. # This wrapper script should never be moved out of the build directory.
  10. # If it is, it will not operate correctly.
  11.  
  12. # Sed substitution that helps us do robust quoting.  It backslashifies
  13. # metacharacters that are still active within double-quoted strings.
  14. Xsed='/bin/sed -e 1s/^X//'
  15. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  16.  
  17. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18. # if CDPATH is set.
  19. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20.  
  21. relink_command="(cd /build/buildd/linux-ntfs-1.13.1/ntfsprogs; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/usr/games\"; export PATH; gcc -Wall -g -O2 -Wall -o \$progdir/\$file ntfsdecrypt.o utils.o  /usr/lib/libgnutls.so -L/usr/lib /usr/lib/libtasn1.so -lz /usr/lib/libgcrypt.so -lnsl /usr/lib/libgpg-error.so ../libntfs/.libs/libntfs.so -Wl,--rpath -Wl,/build/buildd/linux-ntfs-1.13.1/libntfs/.libs)"
  22.  
  23. # This environment variable determines our operation mode.
  24. if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
  25.   # install mode needs the following variable:
  26.   notinst_deplibs=' ../libntfs/libntfs.la'
  27. else
  28.   # When we are sourced in execute mode, $file and $echo are already set.
  29.   if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  30.     echo="echo"
  31.     file="$0"
  32.     # Make sure echo works.
  33.     if test "X$1" = X--no-reexec; then
  34.       # Discard the --no-reexec flag, and continue.
  35.       shift
  36.     elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  37.       # Yippee, $echo works!
  38.       :
  39.     else
  40.       # Restart under the correct shell, and then maybe $echo will work.
  41.       exec /bin/sh "$0" --no-reexec ${1+"$@"}
  42.     fi
  43.   fi
  44.  
  45.   # Find the directory that this script lives in.
  46.   thisdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  47.   test "x$thisdir" = "x$file" && thisdir=.
  48.  
  49.   # Follow symbolic links until we get to the real thisdir.
  50.   file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
  51.   while test -n "$file"; do
  52.     destdir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  53.  
  54.     # If there was a directory component, then change thisdir.
  55.     if test "x$destdir" != "x$file"; then
  56.       case "$destdir" in
  57.       [\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
  58.       *) thisdir="$thisdir/$destdir" ;;
  59.       esac
  60.     fi
  61.  
  62.     file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  63.     file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
  64.   done
  65.  
  66.   # Try to get the absolute directory name.
  67.   absdir=`cd "$thisdir" && pwd`
  68.   test -n "$absdir" && thisdir="$absdir"
  69.  
  70.   program=lt-'ntfsdecrypt'
  71.   progdir="$thisdir/.libs"
  72.  
  73.   if test ! -f "$progdir/$program" || \
  74.      { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | /bin/sed 1q`; \
  75.        test "X$file" != "X$progdir/$program"; }; then
  76.  
  77.     file="$$-$program"
  78.  
  79.     if test ! -d "$progdir"; then
  80.       mkdir "$progdir"
  81.     else
  82.       rm -f "$progdir/$file"
  83.     fi
  84.  
  85.     # relink executable if necessary
  86.     if test -n "$relink_command"; then
  87.       if relink_command_output=`eval $relink_command 2>&1`; then :
  88.       else
  89.     echo "$relink_command_output" >&2
  90.     rm -f "$progdir/$file"
  91.     exit 1
  92.       fi
  93.     fi
  94.  
  95.     mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
  96.     { rm -f "$progdir/$program";
  97.       mv -f "$progdir/$file" "$progdir/$program"; }
  98.     rm -f "$progdir/$file"
  99.   fi
  100.  
  101.   if test -f "$progdir/$program"; then
  102.     if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
  103.       # Run the actual program with our arguments.
  104.  
  105.       exec "$progdir/$program" ${1+"$@"}
  106.  
  107.       $echo "$0: cannot exec $program ${1+"$@"}"
  108.       exit 1
  109.     fi
  110.   else
  111.     # The program doesn't exist.
  112.     $echo "$0: error: \`$progdir/$program' does not exist" 1>&2
  113.     $echo "This script is just a wrapper for $program." 1>&2
  114.     echo "See the libtool documentation for more information." 1>&2
  115.     exit 1
  116.   fi
  117. fi
  118.